package cn.lutu.protocol.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_user_role")
public class RoleUser {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private Long roleId;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yy/MM/dd HH:mm:ss")
    private LocalDateTime createTime;
}
